@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["", 
						"书记名", 
						"书记照片", 
						"书记电话", 
						"县长名", 
						"县长照片", 
						"县长电话", 
						"总村数", 
						"贫困村", 
						"总人口", 
						"贫困人口", 
						"贫困户", 
						"待脱贫人口", 
						"已脱贫人口"];
		var _colmodel = [{name:"id", index:"id", width:100},
						{name:"shuji_name", index:"shuji_name", width:100},
						{name:"shuji_pic", index:"shuji_pic", width:100},
						{name:"shuji_tel", index:"shuji_tel", width:100},
						{name:"xianzhang_name", index:"xianzhang_name", width:100},
						{name:"xianzhang_pic", index:"xianzhang_pic", width:100},
						{name:"xianzhang_tel", index:"xianzhang_tel", width:100},
						{name:"cun_num", index:"cun_num", width:100},
						{name:"poor_cun_num", index:"poor_cun_num", width:100},
						{name:"people_num", index:"people_num", width:100},
						{name:"poor_people_num", index:"poor_people_num", width:100},
						{name:"poor_family_num", index:"poor_family_num", width:100},
						{name:"in_poor_people", index:"in_poor_people", width:100},
						{name:"out_poor_people", index:"out_poor_people", width:100}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
@		{name:"", index:"id", type:"text"},
			@		{name:"书记名", index:"shuji_name", type:"text"},
			@		{name:"书记照片", index:"shuji_pic", type:"text"},
			@		{name:"书记电话", index:"shuji_tel", type:"text"},
			@		{name:"县长名", index:"xianzhang_name", type:"text"},
			@		{name:"县长照片", index:"xianzhang_pic", type:"text"},
			@		{name:"县长电话", index:"xianzhang_tel", type:"text"},
			@		{name:"总村数", index:"cun_num", type:"text"},
			@		{name:"贫困村", index:"poor_cun_num", type:"text"},
			@		{name:"总人口", index:"people_num", type:"text"},
			@		{name:"贫困人口", index:"poor_people_num", type:"text"},
			@		{name:"贫困户", index:"poor_family_num", type:"text"},
			@		{name:"待脱贫人口", index:"in_poor_people", type:"text"},
			@		{name:"已脱贫人口", index:"out_poor_people", type:"text"}							
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	